<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv=X-UA-Compatible content="IE=edge,chrome=1">
    <meta content=always name=referrer>
    <link rel="stylesheet" type="text/css" href="__STATIC__/css/style.css">
    <script src="__STATIC__/js/jquery-1.8.2.js"></script>
    <title>店铺名称</title>
</head>
<body>
<form action="" method="post" id="form">
<div class="wrap-shopname">
    <div class="header">
        <p>店铺信息</p>
        <img src="__STATIC__/img/back.png" class="back" onclick =window.location.href="{:url('mobile/shop_auth/shop_info')}";>
        <span><a href="javascript:void(0)" id="save">保存</a></span>
    </div>
    <div class="name">
        <input type="text" name="title" value="{:input('title')}" nullmsg="店铺名称不能为空" datatype="*1-10" errormsg="名称字数过多" placeholder="请输入名称(建议少于10字)">
        <img src="__STATIC__/img/close.png" title="清空文本框" name="title" onclick=$("[name='title']").val('')>
    </div>
</div>
</form>
{include file='public/src' /}
<script>
    $(function () {
        $.Tipmsg.r = null;
        $.Tipmsg.p = null;
        $('#form').Validform({
            tiptype: function (msg) {
                layer.open({content: msg, skin: 'msg', time: 2});
            },
            btnSubmit: '#save',
            tipSweep: true,
            ajaxPost:true,
            callback:function (t) {
                layer.open({content:t.message,skin:'msg',time:2});
                if (t.code == 200){
                    setTimeout(function () {
                        window.location.href = "{:url('mobile/shop_auth/shop_info')}";
                    },2000);
                }
            }
        })

    });

</script>
</body>
</html>